package com.song;

import com.song.service.StudyService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName : StudyConsumerMain
 * @Author : 司猫子
 * @Date: 2021/2/26 23:38
 */
public class StudyConsumerMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cpx = new ClassPathXmlApplicationContext("study-service-consumer.xml");
        StudyService studyService = (StudyService) cpx.getBean("studyService");
        String db = studyService.quertStudyName("web");
        System.out.println("需要学习的课程===="+db);
    }
}
